package com.tjetc.mapper;

import com.tjetc.domain.Doctor;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DoctorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Doctor record);

    int insertSelective(Doctor record);

    Doctor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Doctor record);

    int updateByPrimaryKey(Doctor record);

    List<Doctor> getAll(@Param("name") String name,@Param("hid") Integer hid);

    List<Doctor> selByClinicId(Integer cid);

    @Select("select * from doctor where username = #{username} ")
    Doctor selectByUsername(String username);

    Doctor getDoctorAndClinic(Integer id);
}